﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsMeasureItem")]
    public partial class MsMeasureItem
    {
        public MsMeasureItem()
        {
        }

        public enum EnumHouseMapStatus
        { 启用 = 0, 禁用 = 1 }

        /// <summary>
        /// 户型图Id
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid HouseMapId { get; set; }

        /// <summary>
        /// 站点UUID
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid PointId { get; set; }

        /// <summary>
        /// 测量项编号
        /// </summary>
        [Column(TypeName = "varchar(10)")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public string Id { get; set; }

        /// <summary>
        /// 测量项名称
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(40)")]
        public string Title { get; set; }

        /// <summary>
        /// 测量项代码
        /// </summary>
        [Required]
        [Column(TypeName = "varchar(40)")]
        public string Code { get; set; }

        /// <summary>
        /// 测量项Id
        /// </summary>
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ItemId { get; set; }

        /// <summary>
        /// 设计值单位
        /// </summary>
        [Column(TypeName = "varchar(6)")]
        public string Unit { get; set; }
    }
}